<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 28700
  Date: 2022/6/11
  Time: 16:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>录入农产品</title>
</head>
<body>
<h1>欢迎你${username}</h1>
<form action="/welcome" method="post">
    <input type="hidden" name="username" value="${username}">
    <input type="submit" value="返回">
</form>

<form action="/proadd" enctype="multipart/form-data" method="post">
    <input type="hidden" name="username" value="${username}">
    农产品名<input type="text" name="name"><br>
    选择产品图片<input type="file" name="fs"><br>
    安全等级
    <select name="state">
        <option value="1">普通食品</option>
        <option value="2">无公害食品</option>
        <option value="3">绿色A级食品</option>
        <option value="4">绿色AA级食品</option>
        <option value="5">有机食品</option>
    </select>

    <br>
    <br>
    类别
    <select name="tid">
        <option value="1">粮油</option>
        <option value="2">果蔬及花卉</option>
        <option value="3">林产品</option>
        <option value="4">畜禽产品</option>
        <option value="5">水产品</option>
        <option value="6">其它农副产品</option>
    </select>
    <br>
    生产公司
    <select class="form-control" name="eid">
        <c:forEach items="${ep}" var="ep">
            <option value="${ep.id}">${ep.name}</option>
        </c:forEach>
    </select>
    <br>
    生产负责人<input type="text" name="pername">
    <br>
    负责人电话<input type="tel" name="tel">
    <br>
    价格<input type="text" name="price">
    <br>
    产地<input type="text" name="place">
    <br>
    <input type="submit" value="录入">
</form>
</body>
</html>
